<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i
                                class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('huifang/add')?'':'hide'}"
                           title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;"
                           class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('huifang/edit')?'':'hide'}"
                           title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;"
                           class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('huifang/del')?'':'hide'}"
                           title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('huifang/recyclebin')?'':'hide'}"
                           href="huifang/recyclebin" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i>
                            {:__('Recycle bin')}</a>
                        <a href="javascript:;" class="btn btn-default" style="font-size:14px;color:dodgerblue;">
                            <i class="fa fa-bell"></i>
                            <span class="extend">
                                今天需要回访：<span id="today_num"></span>
                            </span>
                        </a>
                        <a href="javascript:;" class="btn btn-default" style="font-size:14px;color:dodgerblue;">
                            <i class="fa fa-bell"></i>
                            <span class="extend">
                                明天需要回访：<span id="tomorrow_num"></span>
                            </span>
                        </a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('huifang/edit')}"
                           data-operate-del="{:$auth->check('huifang/del')}"
                           data-operate-huifangjilu="{:$auth->check('huifang/huifangjilu')}"
                           data-operate-huifangadd="{:$auth->check('huifang/huifangadd')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="huifangformtpl" type="text/html">
    <form class="form-huifang form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate=""
          method="post" action="">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="bhid" class="control-label col-xs-4">编号</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="bhid-operate" data-name="bhid"
                               value="LIKE" readonly="">
                        <input type="text" class="form-control" name="bhid" value="" placeholder="编号">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="name" class="control-label col-xs-4">姓名</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="name-operate" data-name="name"
                               value="LIKE" readonly="">
                        <input type="text" class="form-control" name="name" value="" placeholder="姓名">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="sex" class="control-label col-xs-4">性别(单选)</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="sex-operate" data-name="sex" value="="
                               readonly="">
                        <select class="form-control" name="sex">
                            <option value="">选择</option>
                            <option value="male">男</option>
                            <option value="female">女</option>
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="phone" class="control-label col-xs-4">手机号</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="phone-operate" data-name="phone"
                               value="LIKE" readonly="">
                        <input type="text" class="form-control" name="phone" value="" placeholder="手机号">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="intime" class="control-label col-xs-4">就诊日期</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="intime-operate" data-name="intime"
                               value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="intime" value="" placeholder="就诊日期"
                               autocomplete="off">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="outtime" class="control-label col-xs-4">离院日期</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="outtime-operate" data-name="outtime"
                               value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="outtime" value="" placeholder="离院日期"
                               autocomplete="off">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="yytime" class="control-label col-xs-4">预约日期</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="yytime-operate" data-name="yytime"
                               value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="yytime" value="" placeholder="预约日期"
                               autocomplete="off">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="hftime" class="control-label col-xs-4">下次回访日期</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="hftime-operate" data-name="hftime"
                               value="RANGE" readonly="">
                        <input type="text" class="form-control datetimerange" name="hftime" value=""
                               placeholder="下次回访日期" autocomplete="off">
                    </div>
                </div>
                {if $auth->check("huifang/showNickname")}
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="admin.nickname" class="control-label col-xs-4">导医</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="admin.nickname-operate" data-name="admin.nickname" value="LIKE" readonly="">
                        <!--<input type="text" class="form-control" name="admin.nickname" value="" placeholder="导医" >-->

                        <select class="form-control" name="admin.nickname">
                            <option value="">选择</option>
                            {volist name="adminNicknameList" id="vo"}
                            <option value="{$vo}">{$vo}</option>
                            {/volist}
                        </select>

                    </div>
                </div>
                {/if}
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>